import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false
//全局注册指令
Vue.directive('focus', {
  //在指令所在的元素，被插入到页面中时触发
  inserted(el) {
    el.focus()
    // el.value = binding.value
  }
})

new Vue({
  render: h => h(App),
}).$mount('#app')
